<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
    <div class="col100">
        <fieldset class="adminform">
            <legend><?php echo JText::_( 'Details' ); ?></legend>

            <table class="admintable">
                <tr>
                    <td width="100" align="right" class="key">
                        <label for="por_cis">
                            <?php echo JText::_( 'Pořadové číslo odstavce' ); ?>:
                        </label>
                    </td>
                    <td>
                        <input class="text_area" type="text" name="por_cis" id="por_cis" size="2" maxlength="2" value="<?php echo $this->odstavce->por_cis;?>" />
                    </td>
                </tr>
               <tr>
                    <td width="100" align="right" class="key">
                        <label for="nadpis">
                            <?php echo JText::_( 'Nadpis odstavce' ); ?>:
                        </label>
                    </td>
                    <td>
                        <input class="text_area" type="text" name="nadpis" id="nadpis" size="20" maxlength="50" value="<?php echo $this->odstavce->nadpis;?>" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right" class="key">
                        <label for="obsah">
                            <?php echo JText::_( 'Vlastní text odstavce' ); ?>:
                        </label>
                    </td>
                    <td>
                        <input class="text_area" type="text" name="obsah" id="obsah" size="140" maxlength="500" value="<?php echo $this->odstavce->obsah;?>" />
                    </td>
                </tr>
                
            </table>
            <p>
                <?php
                $link_delete = JRoute::_( 'index.php?option=com_ohlasky&controller=odstavce&task=remove&id='.$this->odstavce->id );
                echo "<a href=\"".$link_delete."\"> vymazat odstavec (bez dalšího varování!) </a>";
                ?>
            </p>
        </fieldset>
    </div>
    <div class="clr"></div>

    <input type="hidden" name="option" value="com_ohlasky" />
    <input type="hidden" name="id" value="<?php echo $this->odstavce->id; ?>" />
    <input type="hidden" name="tyden_id" value="<?php echo $this->odstavce->tyden_id; ?>" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="controller" value="odstavce" />
</form>

